
package com.kunbo.cn.util.retu;
import java.io.Serializable;
/**
 *
 * @author bjl  
 * @date 2019年4月11日 
 */

public class ResultBean1<T> implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -7858170990473487738L;
	public static final int SUCCESS = 0;
    public static final int FAIL = -1;

    private String msg = "SUCCESS";
    private int code = SUCCESS;
   // private int total =0;
    private T data;
   

    public ResultBean1() {
        super();
    }

    public ResultBean1(T data) {
        super();
        this.data = data;
    }

    public ResultBean1(Throwable e) {
        super();
        this.msg = e.getMessage();
        this.code = FAIL;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

	/*public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}*/

	
    
}
